package com.bookstore.entity;

public class OrderItem {
    private Integer orderItemId;
    private String orderId;
    private String productId;
    private Integer buynum;

    public OrderItem() {
    }

    public OrderItem(Integer orderItemId, String orderId, String productId, Integer buynum) {
        this.orderItemId = orderItemId;
        this.orderId = orderId;
        this.productId = productId;
        this.buynum = buynum;
    }

    public Integer getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(Integer orderItemId) {
        this.orderItemId = orderItemId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getBuynum() {
        return buynum;
    }

    public void setBuynum(Integer buynum) {
        this.buynum = buynum;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "orderItemId=" + orderItemId +
                ", orderId='" + orderId + '\'' +
                ", productId='" + productId + '\'' +
                ", buynum=" + buynum +
                '}';
    }
}
